module.exports = {
    // assetDir:'assets',
    configureWebpack:{
        resolve: {
            alias: {
                'assets':'@assets',
                'common': '@common',
                'components': '@components',
                'network': '@network',
                'views': '@views'
            }
        },
        externals: {
            'vue': 'Vue',
            'vue-router': 'VueRouter',
            'vuex': 'Vuex',
            'axios': 'axios',
        }
    },
    publicPath:process.env.NODE_ENV === 'production' ? './' :'/',
    devServer :{
        proxy : {
            '/api' :{
                target: 'https://www.bilibili.com/',
                changOrigin:true,
                //路径重写 
                pathRewrite:{
                    '^/api':''
                }
            }
        }

    }
}
